package com.javabasic.algorithm.newcode;

import java.util.Scanner;

/**
 * @Author xiongmin
 * @ClassName 字符串查找
 * @Description TODO
 * @Date 2019/9/1 11:24
 * @Version 1.0
 **/
public class 字符串查找 {

    static Scanner cin = new Scanner(System.in);

    public static void main(String[] args) {
        String str1 = cin.next();
        String str2 = cin.next();
        int len1 = str1.length();
        int len2 = str2.length();
        int result = 0;
//        System.out.println(str1 + " "+str2);
        for (int  i = 0; i <= len1-len2; i++) {
//            System.out.println(str1.substring(i, i + len2));
            if (str1.substring(i,i+len2).equals(str2)) {

                result ++;
            }
        }
        System.out.println(result);
    }
}
